


#ifndef _CONNECTION_H
#define _CONNECTION_H

#ifdef __cplusplus
extern "C"
{
#endif
int  login(int sockfd);
int send_socket(int sockfd,const char *out_buf, int size);
int read_socket(int sockfd, char * buf,int size);
int connect_to_ftpserver(char *host,int port);
int make_server_sock(int port);
int ftp_pasv(int sockfd);
int ftp_port(int sockfd);
int ftp_close_datasockfd(int sockfd,int datasockfd);
#ifdef __cplusplus
}
#endif

#endif /* _CONNECTION_H */
